from django.contrib import admin
from .models import User
from .models import News
from .models import Newstype
# Register your models here.

class UserAdmin(admin.ModelAdmin):
	list_display=("username","email","passwd","phone","isadmin")
admin.site.register(User,UserAdmin)
class NewsAdmin(admin.ModelAdmin):
	list_display = ("title","author","content","newstypename")
admin.site.register(News, NewsAdmin)
class NewstypeAdmin(admin.ModelAdmin):
	list_display = ("newstypename",)
admin.site.register(Newstype, NewstypeAdmin)